Hi, please can anyone see why SAXFatalError is not called when running this code? The Print statement in SAXFatalError is not fired. Instead I get error 4603 SAX parser operation failed. Thanks! Sub Initialize Dim session As New NotesSession Dim stream As NotesStream Dim parser As NotesSAXParser Set stream=session.CreateStream Call stream.WriteText("<docs><doc><title>not well-f&rmed</title></doc></docs>") Set parser=session.CreateSAXParser(stream) On Event SAX_Characters From parser Call SAXCharacters On Event SAX_FatalError From parser Call SAXFatalError Call parser.Process End Sub Sub SAXFatalError(Source As NotesSAXParser, Exception As NotesSAXException) Print "FatalError: "+Exception.Message End Sub Sub SAXCharacters(Source As NotesSAXParser, Byval Characters As String, Byval Length As Long) Print Characters End Sub
Go back